﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DateYearMonth.ascx.cs"
    Inherits="UserControl_DateYearMonth" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:RowLayout ID="RowLayout1" runat="server"><Rows>
    <ext:LayoutRow>
        <ext:Panel ID="Panel21" runat="server" Height="30" Title="" Border="false" BodyStyle="border-width:0 0 0 0;padding:0;">
            <Content>
                <ext:ColumnLayout ID="ColumnLayout5" runat="server" FitHeight="true"><Columns>
                    <ext:LayoutColumn ColumnWidth="0.63">
                        <ext:Panel ID="Panel22" runat="server" Border="false" Height="30">
                            <Content>
                                <ext:FormLayout ID="FormLayout12" runat="server">
                                    <Anchors>
                                        <ext:Anchor Horizontal="100%">
                                            <ext:ComboBox ID="extcomb_year" runat="server" LabelStyle=" text-align:right; " FieldLabel="年月"
                                                Editable="false" TypeAhead="true">
                                                <Items>
                                                    <ext:ListItem Value="" Text="&nbsp;" />
                                                    <ext:ListItem Value="2006" Text="2006" />
                                                    <ext:ListItem Value="2007" Text="2007" />
                                                    <ext:ListItem Value="2008" Text="2008" />
                                                    <ext:ListItem Value="2009" Text="2009" />
                                                    <ext:ListItem Value="2010" Text="2010" />
                                                    <ext:ListItem Value="2011" Text="2011" />
                                                    <ext:ListItem Value="2012" Text="2012" />
                                                    <ext:ListItem Value="2013" Text="2013" />
                                                    <ext:ListItem Value="2014" Text="2014" />
                                                    <ext:ListItem Value="2015" Text="2015" />
                                                </Items>
                                                <Listeners>
                                                    <Select Handler="if(#{extcomb_year}.getValue()=='&nbsp;') #{extcomb_month}.setValue('');" />
                                                </Listeners>
                                            </ext:ComboBox>
                                        </ext:Anchor>
                                    </Anchors>
                                </ext:FormLayout>
                            </Content>
                        </ext:Panel>
                    </ext:LayoutColumn>
                    <ext:LayoutColumn ColumnWidth="0.02">
                        <ext:Panel ID="Panel2" runat="server" Border="false">
                            <Content>
                            </Content>
                        </ext:Panel>
                    </ext:LayoutColumn>
                    <ext:LayoutColumn ColumnWidth="0.35">
                        <ext:Panel ID="Panel23" runat="server" Border="false" Height="30">
                            <Content>
                                <ext:FormLayout ID="FormLayout13" runat="server">
                                    <Anchors>
                                        <ext:Anchor Horizontal="100%">
                                            <ext:ComboBox ID="extcomb_month" runat="server" HideLabel="true" Editable="false"
                                                TypeAhead="true">
                                                <Items>
                                                    <ext:ListItem Value="" Text="&nbsp;" />
                                                    <ext:ListItem Value="01" Text="1" />
                                                    <ext:ListItem Value="02" Text="2" />
                                                    <ext:ListItem Value="03" Text="3" />
                                                    <ext:ListItem Value="04" Text="4" />
                                                    <ext:ListItem Value="05" Text="5" />
                                                    <ext:ListItem Value="06" Text="6" />
                                                    <ext:ListItem Value="07" Text="7" />
                                                    <ext:ListItem Value="08" Text="8" />
                                                    <ext:ListItem Value="09" Text="9" />
                                                    <ext:ListItem Value="10" Text="10" />
                                                    <ext:ListItem Value="11" Text="11" />
                                                    <ext:ListItem Value="12" Text="12" />
                                                </Items>
                                            </ext:ComboBox>
                                        </ext:Anchor>
                                    </Anchors>
                                </ext:FormLayout>
                            </Content>
                        </ext:Panel>
                    </ext:LayoutColumn>
                    </Columns>
                </ext:ColumnLayout>
            </Content>
        </ext:Panel>
    </ext:LayoutRow>
    </Rows>
</ext:RowLayout>
<%--<ext:FormLayout ID="FormLayout1" runat="server">
    <ext:Anchor Horizontal="100%">
        <ext:MultiField runat="server" FieldLabel="年月" LabelStyle=" text-align:right; " >
            <Fields>
                <ext:ComboBox ID="extcomb_year" runat="server" LabelStyle=" text-align:right; " StyleSpec="width:50%;"
                    FieldLabel="年份" Editable="false" TypeAhead="true" >
                    <Items>
                        <ext:ListItem Value="2006" Text="2006" />
                        <ext:ListItem Value="2007" Text="2007" />
                        <ext:ListItem Value="2008" Text="2008" />
                        <ext:ListItem Value="2009" Text="2009" />
                        <ext:ListItem Value="2010" Text="2010" />
                        <ext:ListItem Value="2011" Text="2011" />
                        <ext:ListItem Value="2012" Text="2012" />
                        <ext:ListItem Value="2013" Text="2013" />
                        <ext:ListItem Value="2014" Text="2014" />
                        <ext:ListItem Value="2015" Text="2015" />
                    </Items>
                </ext:ComboBox>
                <ext:ComboBox ID="extcomb_month" runat="server" LabelStyle=" text-align:right; " StyleSpec="width:50%;"
                    FieldLabel="月份" Editable="false" TypeAhead="true" >
                    <Items>
                        <ext:ListItem Value="-1" Text="&nbsp;" />
                        <ext:ListItem Value="01" Text="1" />
                        <ext:ListItem Value="02" Text="2" />
                        <ext:ListItem Value="03" Text="3" />
                        <ext:ListItem Value="04" Text="4" />
                        <ext:ListItem Value="05" Text="5" />
                        <ext:ListItem Value="06" Text="6" />
                        <ext:ListItem Value="07" Text="7" />
                        <ext:ListItem Value="08" Text="8" />
                        <ext:ListItem Value="09" Text="9" />
                        <ext:ListItem Value="10" Text="10" />
                        <ext:ListItem Value="11" Text="11" />
                        <ext:ListItem Value="12" Text="12" />
                    </Items>
                </ext:ComboBox>
            </Fields>
        </ext:MultiField>
    </ext:Anchor>
</ext:FormLayout>--%>

